export default (
  value: any,
  options: {
    label: string;
    value: string;
  }[],
) => {
  for (let option of options) {
    if (option.value === value) return option;
  }
  return {} as any;
};
